<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

	<head profile="http://gmpg.org/xfn/11">

		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

		<title><?php FT_Titulo_Pagina(); ?></title>

		<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

		<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

		<?php if (function_exists('bp_sitewide_activity_feed_link')) : ?>
			<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e('Site Wide Activity RSS Feed', 'buddypress'); ?>" href="<?php bp_sitewide_activity_feed_link(); ?>" />
		<?php endif; ?>

		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e('Blog Posts RSS Feed', 'buddypress'); ?>" href="<?php bloginfo('rss2_url'); ?>" />
		<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e('Blog Posts Atom Feed', 'buddypress'); ?>" href="<?php bloginfo('atom_url'); ?>" />

		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

		<?php wp_head(); ?>

	</head>

	<body <?php body_class(); ?>>
	
		<div id="ligth-box"></div>

		<?php do_action('bp_before_container'); ?>

		<div id="container">
		
			<?php if(!bp_is_directory() && !bp_is_register_page() && !bp_is_activation_page()) : ?>
		
				<div id="third-section" class="widget-section">
					<?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('third-section')) : ?>
		
						<div class="widget-error">
							<?php _e('Please log in and add widgets to this section.', 'buddypress'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=first-section"><?php _e('Add Widgets', 'buddypress'); ?></a>
						</div>
		
					<?php endif; ?>
				</div>
			
			<?php endif; ?>
		
			<?php do_action('bp_before_header'); ?>

			<div id="header">
		
				<h1 id="logo">
					<a href="<?php FT_Blog_URL('base'); ?>" title="<?php FT_Blog_Info('long_name'); ?>">
						<?php FT_Blog_Info('name'); ?>
					</a>
				</h1>
		
				<?php FT_Menu_Principal(); ?>
		
			</div>
		
			<?php do_action('bp_after_header'); ?>

			<?php if(!bp_is_blog_page() && !bp_is_directory() && !bp_is_register_page() && !bp_is_activation_page()) : ?>

				<?php locate_template(array('userbar.php'), true); /* Load the user navigation */ ?>
				<?php locate_template(array('optionsbar.php'), true); /* Load the currently displayed object navigation */ ?>

			<?php endif; ?>
